projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
203a571
)
(display_text_line): Don't overrun the charstart area.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 2 Sep 1994 20:17:12 +0000
(20:17 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 2 Sep 1994 20:17:12 +0000
(20:17 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index c67eeea232a27b33075427973f622f9e5dd3d1ab..4369f5154beefdfde44c70b12490dfb38f71ec52 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-2309,7
+2309,7
@@
display_text_line (w, start, vpos, hpos, taboffset)
if (p1 != p1prev)
{
int *p2x = &charstart[p1prev - p1start];
- int *p2 = &charstart[
p1
- p1start];
+ int *p2 = &charstart[
(p1 < endp ? p1 : endp)
- p1start];
/* The window's left column should always
contain a character position.